package com.youlai.boot.factory.model.vo;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import java.time.LocalDateTime;

/**
 * 服装厂用户视图对象
 *
 * @author youlaitech
 * @since 2025-07-14 19:43
 */
@Getter
@Setter
@Schema( description = "服装厂用户视图对象")
public class UsersVO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    private Integer userId;
    @Schema(description = "所属服装厂ID，关联到工厂表")
    private Integer factoryId;
    @Schema(description = "用户名，用于登录")
    private String username;
    @Schema(description = "加密后的密码")
    private String passwordHash;
    @Schema(description = "真实姓名")
    private String realName;
    @Schema(description = "联系电话")
    private String phone;
    @Schema(description = "电子邮箱")
    private String email;
    @Schema(description = "用户角色：worker-普通员工, supervisor-组长/主管, manager-厂长, admin-系统管理员")
    private String role;
    @Schema(description = "所属部门，如裁剪部、缝制部、包装部等")
    private String department;
    @Schema(description = "职位")
    private String position;
    @Schema(description = "入职日期")
    private LocalDate hireDate;
    @Schema(description = "账号状态：0-禁用，1-启用")
    private Integer status;
    @Schema(description = "登录时ip所在地")
    private String loginIpAddress;
    @Schema(description = "登录时ip ")
    private String loginIp;
    @Schema(description = "最后登录时间")
    private LocalDateTime lastLogin;
    @Schema(description = "创建时间")
    private LocalDateTime createdAt;
    @Schema(description = "更新时间")
    private LocalDateTime updatedAt;
    @Schema(description = "创建人ID")
    private Integer createdBy;
    @Schema(description = "备注信息")
    private String notes;
}
